package com.ruoyi.service.jpjs.costsummary;

import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface CostSummaryService {

    //查询所有成本汇总
    List<Map<String, Object>> findCostSummaryAll(Map<String, Object> map);

    //根据条件查询成本汇总月份
    List<Map<String, Object>> findCostSummaryMonthAll(Map<String, Object> map);

    //修改或者新增成本汇总
    int saveCostSummary(List<Map<String, Object>> list);

    //删除成本汇总和成本汇总月份
    int remove(Map<String, Object> map);

    //添加成本汇总查询
    List<Map<String, Object>> addFindCostSummaryAll(Map<String, Object> map);

    //查询月份是否存在数据
    int readOnly(Map<String, Object> map);

    //添加成本汇总查询
    Map<String, Object> findMaxDate(String companyId, String proId, String buildingId);

    //根据楼栋号查询年月
    List<Map<String, Object>> findDate(Map<String, Object> map);

    //复制单体楼信息
    int copy(Map<String, Object> map);

    //统计当期单价平均值
    List<Map<String, Object>> findCurrentUnivalent(Map<String, Object> map);

    //导出统计当期单价平均值
    AjaxResult exportCurrentUnivalent(Map<String, Object> map);

    //导出统计成本汇总
    AjaxResult export(Map<String, Object> map);

    //导出单体楼全部
    AjaxResult exportBuilding(Map<String, Object> map);

    //导入成本汇总
    int importData(MultipartFile file);

    //导出成本汇总模板
    AjaxResult importTemplate();
}
